package main

import "fmt"

func main() {
	var a = [...]int8{1, 2, 3}
	var s = []int8{1, 2, 3}

	aa := a
	ss := s

	aa[0] = 12
	ss[0] = 11
	fmt.Printf("array aa is %v\n", aa)
	fmt.Printf("arry a is: %v\n", a)
	fmt.Printf("slice ss is: %v\n", ss)
	fmt.Printf("slice s is: %v\n", s)

	pa := &a
	pa[0] = 11
	fmt.Printf("pointer changed and arry a is: %v\n", a)

}
